package entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Author 周罗校
 * @Description
 * @ClassName PageResult
 * @date 2020.11.18 19:54:32
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public class PageResult<T> implements Serializable {
    //总记录数
    private Long total;

    //当前页数据
    private List<T> rows;

    public PageResult() {
    }

    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
